package com.qcs.sleep.call;

import java.util.Observable;
import java.util.Observer;

/**
 * Created by chshqiang on 15-7-21.
 * 观察者
 */
public abstract class ActionWatcher implements Observer {

    /**
     * update
     *
     * @see Observer#update(Observable, Object)
     */
    @Override
    public void update(Observable observable, Object data) {
        if (data instanceof String)
            update((String) data);
    }

    public abstract void update(String action);
}
